<?php
/*
 * 行业圈
 * @arrange WL
 * @package ixdcw
 * @file    industry.inc.php
 */
defined('IN_IXDCW') or exit('Access Denied');
login();
isCompleteData();//检测个人资料是否完善
require DT_CORE.'/'.$module.'/common.inc.php';
require_once MD_ROOT.'/memberIndustry.class.php';
require_once DT_INC.'/post.func.php';
$do = new memberIndustry();
$do->userid = $_userid;
$user = $do->get();
if($post) {
	$areaid=$db->getOne("select areaid from {$db->getPre()}member where userid= '".$_userid."'");
	$post['areaid']   = $areaid['areaid'];
	$post['edittime'] = $DT_TIME;
	$do->updateInfo($post);
	$do->updateiCats($post['icats'], $post['areaid']);
	Prompt::message('行业圈资料修改成功');
}else{
	extract($user);
	$ITYPES = get_type('industry');

}
include template('industry', $module);
?>